<?php
return array_merge_recursive(array(
	// Application
	'bootstrap' => APP_PATHNAME . '/Bootstrap.php',
	'phpSettings' => array(
		'magic_quotes_runtime' 	=> 0,
		'magic_quotes_gpc' 		=> 0
	),
	'autoloadernamespaces' => array(
		'KontorX','Promotor','Prana'
	),
	// Bootstrap
	'pluginpaths' => array(
		'KontorX_Application_Resource' => 'KontorX/Application/Resource',
		'Promotor_Application_Resource' => 'Promotor/Application/Resource'
	),
	'resources' => array(
		'frontcontroller' => include sprintf('%s/%s/frontcontroller.php', dirname(__FILE__), APP_ENV),
		'view' => null, // Promotor_Application_Resource_View
		'layout' => array(), // Promotor_Application_Resource_Layout
		'modules' => array(
			'resourceloader' => 'Zend_Application_Module_Autoloader',
//			'shop' => array('TEST')
		),
		'locale' => array(
			'default' => 'pl'
		),
		'observers' => include sprintf('%s/resource.observers.php', dirname(__FILE__)),
		'template' => include sprintf('%s/%s/template.php', dirname(__FILE__), APP_ENV),
		'translate' => array(
			'adapter' => 'Ini',
			'data' => APP_LANGUAGE_PATHNAME,
			'options' => array(
				'scan' => Zend_Translate::LOCALE_FILENAME
			)
		),
		'acl' => include 'acl.php',
		'db' => include sprintf('%s/%s/db.php', dirname(__FILE__), APP_ENV),
		'router' => include sprintf('%s/%s/router.php', dirname(__FILE__), APP_ENV)
	)
),
include sprintf('%s/%s/application.php', dirname(__FILE__), APP_ENV));
//,include sprintf('%s/%s/modules.php', dirname(__FILE__), APP_ENV));